package com.fusetech.flow.audit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fusetech.flow.audit.domain.AuditProcessAuditorRoleUser;
import com.fusetech.flow.audit.service.dto.AuditProcessAuditorRoleUserDTO;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


/**
 * 审核流程对应角色MAPPER接口
 * @author xx
 * @version 2023-05-06
 */
public interface AuditProcessAuditorRoleUserMapper extends BaseMapper<AuditProcessAuditorRoleUser> {

    /**
     * 根据id获取审核流程对应角色
     * @param id
     * @return
     */
    AuditProcessAuditorRoleUserDTO findById(String id);

    /**
     * 获取审核流程对应角色列表
     *
     * @param queryWrapper
     * @return
     */
    IPage <AuditProcessAuditorRoleUserDTO> findList(Page <AuditProcessAuditorRoleUserDTO> page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);

    /**
     * del ProcessID对应表单角色
     * @param id
     * @return
     */
    int deleteAuditProcessAuditorRoleUserByProcessID(String id);
}
